<template>
  <div>
    sadsadsa
    <button @click="change">bdam</button>
  </div>
</template>

<script>
import axios from '../http/axios'
import {onMounted, reactive,ref} from 'vue'
export default {
name: "login",
setup(){
      let form = reactive({'name':'tt','password':123})
      let count = ref(0)
      const change=()=>{
        form.name='asd'
        count.value=12
        axios('sf','get').then(res=>{
          console.log(res)
  })
  } 
    onMounted(()=>{
      change
  })
  return{
    form,
    count,
    change
 
}
}
}
</script>

<style scoped>

</style>